package com.wuchengdong.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wuchengdong.web.mapper.ReviewMapper;
import com.wuchengdong.web.pojo.Review;
import com.wuchengdong.web.service.ReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ReviewServiceImpl extends ServiceImpl<ReviewMapper, Review> implements ReviewService {
    private final int SIZE = 3;
    @Autowired
    private ReviewMapper reviewMapper;
    @Override
    public List<Map<String, String>> getReviewList(int page) {
        return reviewMapper.getReviewList(page * SIZE, SIZE);
    }
}
